package com.gljx.web.Entity;

import org.springframework.beans.factory.annotation.Value;

public class Item extends Message {
    private Integer id;

    private String itemsMessage;

    @Value("${item.leavel}")
    private Integer leavel;

    private Integer type;

    private String userName;

    private String creatTime;

    @Value("${item.isuse}")
    private Integer isuse;

    private String url;//审核路径

    private String url2;//详情路径

    private String companyid;

    @Value("${item.projectid}")
    private String projectid;

    public void msgSetItem(Message msg) {
        this.itemsMessage = msg.getMessage();
        this.companyid = msg.getCompanyid();
        this.leavel = msg.getLeavel();
        this.type = msg.getType();
        this.userName = msg.getUserName();
        this.creatTime = msg.getCreatTime();
        this.isuse = msg.getIslook();
        this.url = msg.getEditUrl();
        this.url2 = msg.getUrl();
        this.projectid = msg.getProjectid();
    }

    public String getUrl2() {
        return url2;
    }

    public void setUrl2(String url2) {
        this.url2 = url2;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getItemsMessage() {
        return itemsMessage;
    }

    public void setItemsMessage(String itemsMessage) {
        this.itemsMessage = itemsMessage;
    }

    public void setItem() {

    }

    public Integer getLeavel() {
        return leavel;
    }

    public void setLeavel(Integer leavel) {
        this.leavel = leavel;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(String creatTime) {
        this.creatTime = creatTime == null ? null : creatTime.trim();
    }

    public Integer getIsuse() {
        return isuse;
    }

    public void setIsuse(Integer isuse) {
        this.isuse = isuse;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getCompanyid() {
        return companyid;
    }

    public void setCompanyid(String companyid) {
        this.companyid = companyid == null ? null : companyid.trim();
    }

    public String getProjectid() {
        return projectid;
    }

    public void setProjectid(String projectid) {
        this.projectid = projectid == null ? null : projectid.trim();
    }
}